/* 
 * Search Insert Position
 */

#include "../func.h"

int searchInsert(vector<int> &nums, int target) {
    return distance(nums.begin(), lower_bound(nums.begin(), nums.end(), target));
}